home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / os2-faq / user / part4 < prev    next >
Encoding:
Text File  |  1993-06-14  |  18.9 KB  |  443 lines

  1. Newsgroups: comp.os.os2.misc,comp.os.os2.apps,news.answers,comp.answers
  2. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!gatech!howland.reston.ans.net!ux1.cso.uiuc.edu!uchinews!kimbark!sip1
  3. From: sip1@kimbark.uchicago.edu (Timothy F. Sipples)
  4. Subject: OS/2 Frequently Asked Questions List Rel. 2.1A (4 of 4)
  5. Message-ID: <1993Jun14.063924.26315@midway.uchicago.edu>
  6. Followup-To: comp.os.os2.misc
  7. Sender: news@uchinews.uchicago.edu (News System)
  8. Reply-To: sip1@midway.uchicago.edu
  9. Organization: University of Chicago Computing Organizations
  10. Date: Mon, 14 Jun 1993 06:39:24 GMT
  11. Approved: news-answers-request@mit.edu
  12. Expires: Sun, 15 Aug 1993 23:59:59 GMT
  13. Lines: 427
  14. Xref: senator-bedfellow.mit.edu comp.os.os2.misc:65778 comp.os.os2.apps:16847 news.answers:9358 comp.answers:987
  15.  
  16. Archive-name: os2-faq/user/part4
  17. Version: 2.1A
  18.  
  19. [Part 4 of 4]
  20.  
  21.  
  22. o If you want to move an icon a small distance, "grab" it from the edge 
  23. nearest the direction you want to move the icon.  
  24.  
  25. o If you wish to place program output in the REXX queue (for processing by 
  26. a REXX program), try 
  27.     
  28.     DIR *.TXT | RXQUEUE 
  29.     
  30. as an example.  (In other words, pipe the program output to RXQUEUE.)  To 
  31. use this program output in your REXX program, try 
  32.     
  33.     /* Sample */
  34.     WHILE QUEUED() > 0 
  35.     PARSE PULL X 
  36.     SAY X 
  37.     END 
  38.  
  39. o A clever way to manipulate files that are locked when the Workplace Shell 
  40. is running (e.g.  display drivers) is to add the line CALL=CMD.EXE at the 
  41. end of CONFIG.SYS.  Then Shutdown and reboot.  The system will restart with 
  42. an OS/2 command line prompt.  Type EXIT to proceed into the Workplace 
  43. Shell.  Using CALL is also a convenient way to configure OS/2's serial 
  44. ports using the MODE command.  For example:  
  45.     
  46.     CALL=C:\OS2\MODE.COM COM2:38400,N,8,1,OCTS=OFF,RTS=ON,BUFFER=ON
  47.     
  48. configures COM2 for high speed RTS handshaking and buffered I/O.  You can 
  49. also use either CDD2 or SHIFTRUN; both utilities are available from (3.2) 
  50. Shareware and Freeware Sources.  
  51.  
  52. Another way, which works well with display drivers, is to copy the new 
  53. DLL(s) to its(their) own directory (say, C:\NEW), then place that directory 
  54. name first in LIBPATH in CONFIG.SYS.  Shutdown and reboot.  OS/2 will use 
  55. that(those) DLL(s) before it attempts to use the one(s) located in 
  56. \OS2\DLL.  [This method is required when using a 16-bit OS/2 2.0 display 
  57. driver with OS/2 2.0 CSD Level 06055 or later.  See (4.6) Corrective 
  58. Service Diskettes.] To switch back to the old driver, edit CONFIG.SYS and 
  59. remove C:\NEW from LIBPATH, then Shutdown and reboot.  
  60.  
  61. o To shutdown without a mouse, press CTRL-ESC, select the Desktop, then 
  62. press the spacebar (to deselect any icons, if necessary), SHIFT-F10, and 
  63. select Shutdown.  
  64.  
  65. o If your video driver does not support "seamless" Windows, try running the 
  66. Win-OS/2 Program Manager in a DOS window.  
  67.  
  68. o Selective Install should be used with caution when changing mouse or 
  69. display drivers.  Verify that proper changes have been made to CONFIG.SYS.  
  70.  
  71. o If your settings notebooks (or PM Sticky Pads) do not display but are 
  72. listed in the Window List, click on the name of the settings notebook in 
  73. the Window List (brought up with CTRL-ESC) with mouse button two and select 
  74. Cascade.  
  75.  
  76. o If your \OS2\*.INI files have grown large, use the CopyINI or WPSBackup 
  77. utilities to shrink them.  Both are available from (3.2) Shareware and 
  78. Freeware Sources.  
  79.  
  80. o To restart the Workplace Shell (without saving desktop settings, perhaps 
  81. after an accidental Arrange), use a utility such as psPM [available from 
  82. (3.2) Shareware and Freeware Sources] to terminate PMSHELL.  
  83.  
  84. o To get rid of a WPS object that cannot be deleted, try one of the 
  85. following:  
  86.  
  87. - Insert a blank diskette in Drive A, click on the stubborn object with 
  88. mouse button two, select Move, select the Path page, enter A:\, press 
  89. ENTER, then format the diskette; 
  90.  
  91. - Use the WPSTools or Black Hole, available from (3.2) Shareware and 
  92. Freeware Sources.  (The WPSTools can also recreate desktop objects that 
  93. have been lost.)  
  94.  
  95. o To load a device driver into high memory in a particular DOS session 
  96. change the DOS_DEVICE setting for the session and add SIZE=0 before the 
  97. path and filename for the device driver.  For example, the following 
  98. DOS_DEVICE entry:  
  99.  
  100.     SIZE=0 C:\OS2\MDOS\ANSI.SYS 
  101.  
  102. loads the ANSI.SYS device driver into high memory in that particular 
  103. session.  
  104.  
  105. o If you wish to create diskettes from MAKEDSKF (.DSK) image files, such as 
  106. those contained on the CD-ROM version of OS/2, and you do not wish to use 
  107. the DOS and OS/2 utility LOADDSKF, you may use a workstation.  For example, 
  108. on an IBM RS/6000 you may use the command:  
  109.  
  110.     dd if=(input filename) of=/dev/rfd0 ibs=1b obs=60b conv=sync 
  111.  
  112. o To reboot the machine from the command line, use:  
  113.     
  114.     SETBOOT /IBD:C
  115.     
  116. Change the last letter (C) if you want to boot from another drive.  
  117.  
  118. o The settings notebooks now support drag and drop operations for assigning 
  119. icons and for changing menus.  
  120.  
  121. To change the icon for an object, first open the settings notebook (click 
  122. on the object with the secondary mouse button, then select Open -> 
  123. Settings).  Click on the General tab.  Then drag any other object to the 
  124. icon located on the General page of the settings notebook.  The object's 
  125. icon will change to match.  If you want to restore it to its former state, 
  126. click on the Undo button.  
  127.  
  128. To assign actions to menus, open the settings notebook, then click on the 
  129. Menu tab.  Click on any of the items in the Available menus section (or 
  130. Create another).  To add an Action, drag the desired program object to the 
  131. Actions on menu section.  
  132.  
  133. o To quickly maximize a window, double click on its title bar.  To restore 
  134. the window to its former size, double click on the title bar again.  
  135.  
  136. o Select the Flowed setting (on the View page of the settings notebook) for 
  137. fastest display when opening folders.  
  138.  
  139. o If you have UNDELETE enabled, but you want to delete an occasional file 
  140. without the overhead incurred by having UNDELETE capability, use the /F 
  141. parameter with the DEL command.  Using this parameter (in either a DOS or 
  142. OS/2 Window) will bypass the routine which moves the file(s) to the 
  143. directory specified by the DELDIR environment variable.  The file(s) 
  144. is(are) deleted faster, but you will not be able to undelete it(them).  The 
  145. /N parameter will prevent prompting ("Are you sure?").  
  146.  
  147. o OS/2 2.1 now includes the ability to set a power on password.  However, 
  148. if you have forgotten your password, and you cannot unlock your desktop 
  149. when you turn your machine on, try the following.  Start OS/2 from a 
  150. diskette boot [see (4.4) Starting OS/2 from Diskette] to get a command line 
  151. prompt.  At the prompt, enter the following commands:  
  152.     
  153.     C:
  154.     
  155. (assuming OS/2 is installed on Drive C; change if necessary) 
  156.     
  157.     MAKEINI OS2.INI LOCK.RC
  158.     
  159.   
  160.   
  161.   Related information: 
  162.   
  163.   (3.2) Shareware and Freeware Sources 
  164.   (4.4) Starting OS/2 from Diskette 
  165.   (4.6) Corrective Service Diskettes 
  166.   
  167.  
  168. (5.11) REXX
  169.  
  170.  How do I use REXX?  What does it do? 
  171.  
  172. REXX is built into every copy of OS/2 (where it is also known as Procedures 
  173. Language/2).  It is a general purpose, interpreted programming language 
  174. which was first released on IBM mainframes over a decade ago.  REXX is 
  175. extremely easy to learn and use.  It is particularly strong at string 
  176. manipulation, and it has features which are difficult to implement in 
  177. compiled languages (like the ability to read its own source code or execute 
  178. a string as a command).  
  179.  
  180. OS/2 applications can use REXX as a common scripting language, which means 
  181. that users need not learn separate macro or script languages for each 
  182. application.  For example, the OS/2 versions of Lotus 1-2-3 and Borland 
  183. ObjectVision will interface with REXX.  OS/2's multimedia extensions 
  184. (MMPM/2) contain a REXX interface, so REXX programs can play, record, and 
  185. manipulate sound and video files.  And REXX can be used to create complex 
  186. batch files (with interactive prompting), since it is integrated so tightly 
  187. into OS/2's command processor.  
  188.  
  189. A pair of REXX visual builders (programming tools which help create even 
  190. complex REXX applications quickly and easily using simple, drag and drop 
  191. manipulation of on screen objects), HockWare's VisPro/REXX and Watcom's VX 
  192. REXX, are now available.  [See (0.2) Recent Developments for more 
  193. information on these two programming tools.] 
  194.  
  195. For more information on OS/2's REXX interpreter, see the REXX Information 
  196. online documentation located in the Information folder.  For more 
  197. information on REXX generally, consult the REXX Frequently Asked Questions 
  198. List [available from (3.2) Shareware and Freeware Sources].  
  199.  
  200.  
  201.  Related information: 
  202.  
  203.  (0.2) Recent Developments 
  204.  (3.2) Shareware and Freeware Sources 
  205.  (3.6) Multimedia (MMPM/2)
  206.  
  207.  
  208. (5.12) ANSI Escape Sequences
  209.  
  210.  What ANSI escape sequences can be used? 
  211.  
  212. ANSI escape sequences provide cursor and screen control in OS/2 character 
  213. mode sessions.  By default ANSI support is turned ON (although it may be 
  214. turned off with the command ANSI OFF).  ANSI support is also available in 
  215. DOS sessions if the device driver ANSI.SYS is loaded.  See the online 
  216. Command Reference for details.  
  217.  
  218. The following ANSI escape sequences are available:  
  219.  
  220.   Key       
  221.   ESC       Refers to ASCII code 27 (i.e. the Escape key) 
  222.   #         Replace with the appropriate number 
  223.   ....      Replace with additional attributes, if desired 
  224.   
  225.   Escape Code Sequence          Function 
  226.   Cursor Controls               
  227.   ESC[#;#H or ESC[#;#f          Moves cursor to line #, column # 
  228.   ESC[#A                        Moves cursor up # lines 
  229.   ESC[#B                        Moves cursor down # lines 
  230.   ESC[#C                        Moves cursor forward # spaces 
  231.   ESC[#D                        Moves cursor back # spaces 
  232.   ESC[#;#R                      Reports current cursor line and column 
  233.   ESC[s                         Saves cursor position for recall later 
  234.   ESC[u                         Return to saved cursor position 
  235.   Erase Functions               
  236.   ESC[2J                        Clear screen and home cursor 
  237.   ESC[K                         Clear to end of line 
  238.   Set Graphics Rendition        
  239.   ESC[#;#;....;#m               Set display attributes where # is 
  240.                                 0 for normal display 
  241.                                 1 bold on 
  242.                                 4 underline (mono only) 
  243.                                 5 blink on 
  244.                                 7 reverse video on 
  245.                                 8 nondisplayed (invisible) 
  246.                                 30 black foreground 
  247.                                 31 red foreground 
  248.                                 32 green foreground 
  249.                                 33 yellow foreground 
  250.                                 34 blue foreground 
  251.                                 35 magenta foreground 
  252.                                 36 cyan foreground 
  253.                                 37 white foreground 
  254.                                 40 black background 
  255.                                 41 red background 
  256.                                 42 green background 
  257.                                 43 yellow background 
  258.                                 44 blue background 
  259.                                 45 magenta background 
  260.                                 46 cyan background 
  261.                                 47 white background 
  262.   ESC[=#;7h                     Put screen in indicated mode where # is 
  263.                                 0 for 40x25 black and white 
  264.                                 1 40x25 color 
  265.                                 2 80x25 black and white 
  266.                                 3 80x25 color 
  267.                                 4 320x200 color graphics 
  268.                                 5 320x200 black and white graphics 
  269.                                 6 640x200 black and white graphics 
  270.                                 7 to wrap at end of line 
  271.   ESC[=#;7l                     Resets mode # set with above command 
  272.   Keyboard Reassignments        
  273.   ESC[#;#;....#p                The first ASCII code defines what is to be
  274.                                 changed; the remaining codes define what it
  275.                                 is to be changed to; strings are permitted.
  276.                                 Examples: 
  277.                                 ESC[65;81p - A becomes Q 
  278.                                 ESC[81;65p - Q becomes A 
  279.                                 ESC[0;68;"dir";13p - Assign the F10 key to a
  280.                                 DIR command.
  281.                                 The 0;68 portion is the extended ASCII code
  282.                                 for the F10 key and 13 is the ASCII code
  283.                                 for a carriage return.  Other function key
  284.                                 codes: F1=59, F2=60, F3=61, ...  F10=68.
  285.   
  286. You can use ANSI escape sequences in the PROMPT environment variable to 
  287. create complex command line prompts.  See the online Command Reference 
  288. (under PROMPT) for details.  
  289.  
  290. For example, if you have a color monitor, try editing your CONFIG.SYS file 
  291. so that 
  292.   
  293.   SET PROMPT=$e[32;40m$e[1m[$P]$e[0m
  294.   
  295. to obtain a more colorful OS/2 command line prompt.  (Case is significant 
  296. in the example given.)  You can do the same for your DOS sessions if you 
  297. edit PROMPT in AUTOEXEC.BAT, assuming you have ANSI.SYS loaded.  Note that 
  298. the $i portion of your PROMPT will enable the help line at the top of the 
  299. window or screen.  It is not included in the example above.  
  300.  
  301. To change the background color of your OS/2 command line sessions, modify 
  302. your CONFIG.SYS file so that this line is changed as shown:  
  303.   
  304.   SET OS2_SHELL=C:\OS2\CMD.EXE /K BLUESCR.CMD
  305.   
  306. changing the drive letter, if necessary.  Then create a file named 
  307. BLUESCR.CMD which contains the following lines:  
  308.   
  309.   @ECHO OFF 
  310.   PROMPT=$e[32;44;1m
  311.   PROMPT $p$g
  312.   CLS 
  313.   
  314. Save the file to a directory that is named in the SET PATH line of your 
  315. CONFIG.SYS file.  Reboot.  Then, when you start an OS/2 command line, the 
  316. background color will be different.  You can change the numbers in the 
  317. first PROMPT line to obtain different colors.  
  318.  
  319. If you are using JP Software's 32-bit 4OS2, and you would like the name of 
  320. the current working directory to appear in the title bar, try using the 
  321. following command:  
  322.   
  323.   PROMPT `%@exec[window"%_cwd"]$h[$p]`
  324.   
  325.   
  326.   Related information: 
  327.   
  328.   (5.10) Clever Tricks 
  329.   
  330.  
  331. (6.1) Promoting OS/2
  332.  
  333.  What can I do to promote OS/2? 
  334.  
  335. OS/2 is selling well, but there are steps you can take to assure that 
  336. hardware devices and software will be available for OS/2 in the future.  
  337. Customer requests do matter.  
  338.  
  339. o Politely, firmly, and repeatedly request driver support from printer, 
  340. video adapter, and other hardware manufacturers.  
  341.  
  342. o When you receive a mailing for DOS/Windows software with a postpaid 
  343. envelope, return the order form marked "Please send information on your 
  344. OS/2 version."  
  345.  
  346. o Start a user group at your location.  Contact Gene Barlow (phone 
  347. 214-402-6456) at IBM or mail ibmpcug@vnet.ibm.com for assistance.  Think 
  348. about how you can publicize your user group.  For instance, most local 
  349. newspapers and television stations will print/broadcast meeting 
  350. announcements for free.  Your local cable television company will be happy 
  351. to broadcast a videotape of your meeting on the public access channel.  
  352.  
  353. o Correspond with members of the computer trade press.  Ask for reviews of 
  354. OS/2 software, hardware compatibility testing with OS/2, OS/2 benchmarking, 
  355. etc.  Respond politely but forcefully to press you think unfair; praise 
  356. good reporting.  
  357.  
  358. o When you purchase a new system, ask the vendor to install OS/2 2.1, and 
  359. to offer credit for dropping DOS and Windows.  If the vendor refuses, you 
  360. may wish to take your business elsewhere.  AST, Northgate, ALR, Unisys, 
  361. Dell, Tangent, IBM, and Ariel Design all offer systems with OS/2 2.1 
  362. preloaded.  
  363.  
  364. o Make sure your company (or yourself) specifies OS/2 compatibility when 
  365. purchasing new products.  
  366.  
  367. o Demonstrate OS/2 to friends, relatives, and associates.  
  368.  
  369. o Ask your computer store to stock OS/2 software titles, have OS/2 
  370. demonstration machines, etc.  
  371.  
  372. o Pass along useful OS/2 shareware and freeware to your local BBS.  Be sure 
  373. to register OS/2 shareware.  
  374.  
  375. o Write an outstanding piece of shareware or freeware [See (4.5) Technical 
  376. Support for details on joining DAP].  IBM has been known to recognize such 
  377. work with rewards.  Also, ask authors of DOS/Windows shareware and freeware 
  378. if they would port to OS/2, or volunteer.  
  379.  
  380. o Recommend products that work well under OS/2; dissuade people from 
  381. purchasing products that do not.  
  382.  
  383. o Wear OS/2 pins, shirts, buttons, and other souvenirs.  Contact Sue at 
  384. Lees/Keystone (phone 914-273-6755) or the IBM OS/2 Hotline (phone 
  385. 800-3-IBM-OS2) to order such items.  
  386.  
  387. o Join Team OS/2, the international organization for OS/2 enthusiasts.  For 
  388. information on Team OS/2 events you should monitor the TEAMOS2 echomail 
  389. conference on your local FidoNet BBS.  If your local BBS does not carry 
  390. TEAMOS2, ask your system operator to get it.  See (4.11) OS/2 BBSes for the 
  391. names and numbers of several BBSes which carry TEAMOS2.  To join Team OS/2, 
  392. send your name, address, and telephone number to Vicci Conway 
  393. (76711.1123@compuserve.com).  
  394.   
  395.   
  396.   Related information: 
  397.   
  398.   (3.2)  Shareware and Freeware Sources 
  399.   (4.5)  Technical Support 
  400.   (4.11) OS/2 BBSes 
  401.   
  402.  
  403. (6.2) Creating INF Files
  404.  
  405.  How can I create INF files? 
  406.  
  407. Creating INF files (like the OS/2 Frequently Asked Questions List) is 
  408. remarkably straightforward.  All you need is the Information Presentation 
  409. Facility Compiler (IPFC), part of the IBM Developer's Toolkit for OS/2 2.1 
  410. (available separately as IBM part no.  61G1416 or as part of many 
  411. development environments such as Borland C++ for OS/2), and a text editor 
  412. (like the Enhanced Editor included with OS/2).  
  413.  
  414. Online IPFC documentation is included with the Toolkit, but you may also 
  415. wish to order the printed Information Presentation Facility Guide and 
  416. Reference, IBM Publication No.  S10G-6262.  See (4.9) Books and Magazines 
  417. for ordering instructions.  Note that the Toolkit is part of the low cost 
  418. OS/2 Professional Developer's Kit CD-ROM.  See (4.5) Technical Support for 
  419. details.  
  420.  
  421. If you wish to include illustrations in your INF file you can use any 
  422. graphics software which can generate OS/2 bitmaps and/or metafiles.  (For 
  423. example, you may create your illustration in PM Chart, paste the 
  424. illustration into Picture Viewer, then save the illustration as a metafile.  
  425. Both PM Chart and Picture Viewer are included with OS/2 2.1.)  A screen 
  426. capture utility [like PM Camera or Galleria, available from (3.2) Shareware 
  427. and Freeware Sources] can also prove useful.  
  428.  
  429.  
  430.  Related information: 
  431.  
  432.  (3.2) Shareware and Freeware Sources 
  433.  (4.5) Technical Support 
  434.  (4.9) Books and Magazines 
  435.  
  436. [End of OS/2 Frequently Asked Questions List.]
  437.  
  438. -- 
  439. Timothy F. Sipples       |READ the OS/2 FAQ List 2.1A, available from
  440. sip1@kimbark.uchicago.edu|192.153.46.254, anonymous ftp, in /os2/all/info/faq,
  441. Dept. of Econ., Univ.    |or from LISTSERV@BLEKUL11.BITNET (send "HELP").
  442. of Chicago, 60637        |[Post to ONE newsgroup only AFTER reading the List.]
  443.